home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19970929-19971216
/
000304_news@newsmaster….columbia.edu _Thu Nov 20 21:15:11 1997.msg
< prev
next >
Wrap
Internet Message Format
|
1997-12-15
|
3KB
Return-Path: <news@newsmaster.cc.columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.35.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id VAA25693
for <kermit.misc@watsun.cc.columbia.edu>; Thu, 20 Nov 1997 21:15:11 -0500 (EST)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id VAA13737
for kermit.misc@watsun; Thu, 20 Nov 1997 21:15:11 -0500 (EST)
Path: news.columbia.edu!watsun.cc.columbia.edu!fdc
From: fdc@watsun.cc.columbia.edu (Frank da Cruz)
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Help with scripting kermit
Date: 21 Nov 1997 02:15:06 GMT
Organization: Columbia University
Lines: 62
Message-ID: <652qra$le$1@apakabar.cc.columbia.edu>
References: <64j0bn$7s9$1@clem.mscd.edu> <0$k2Rz1fk$EP@cc.usu.edu> <651tbe$4es$1@samba.rahul.net>
NNTP-Posting-Host: watsun.cc.columbia.edu
Xref: news.columbia.edu comp.protocols.kermit.misc:8090
In article <651tbe$4es$1@samba.rahul.net>, <dold@network.rahul.net> wrote:
: Joe Doupnik (jrd@cc.usu.edu) wrote:
: : > output logout\13
:
: : What's likely the problem is the sequence of OUTPUT statments
: : blasts their strings at the host with no time delay. It may very well
:
: I have a problem with a long script session going to a telephone switch...
: I am reprogramming information to accomodate area code splits, which is
: just such a wonderful use of Unix awk, c-kermit development, and MS-Kermit
: or C-Kermit execution (but I digress...)
:
: I use input statements, I use pause statements, and I had to set output
: pacing 500, in order to keep from overrunning the switch, even at 2400
: baud. There is no flow control available on the line.
:
: My .tak script (actually 14,000 lines long in this case)
: set output pacing 500
: output 1370444 \13
: input 20 CHANGE
: pause 2
: output \9\9\9\9\9\9 182 \13
: input 20 ACP
: pause 2
: output 1370430 \13
: input 20 CHANGE
:
: If I lower either the output pacing, or reduce the pause to 1, the switch
: can't keep up. If I reduce the pause, even with the INPUT in place, the
: commands get garbled. If I reduce the output pacing, occasional characters
: get dropped.
:
Well, those 2-second pauses probably add up to quite a long period in a
14000-line script (1400 x 2 = 2800 seconds???).
Did you know that you don't have to pause for whole seconds? There is
also an MPAUSE command (alias MSLEEP) that takes milliseconds, e.g.:
msleep 1500
By the above math, this might save you some 700 seconds right there;
adjust as needed.
: I can't remember where I found the description for "output pacing". I
: can't find it in the Using C-Kermit manual.
:
Page 422.
: In Unix, the cu dialer has a feature called "echo check", where each
: character is held until the previous character has been echoed back
: correctly. Is such a pacing option available in C-Kermit?
:
Not built into the OUTPUT command. But of course you can do it yourself:
output blah\13
input 10 blah ; soak up the echo
if fail <do something>
Now (maybe after a small msleep to give the switch time to turn the line
around), it should be ready for input.
- Frank